#include "frame.h"
#include <wx/listctrl.h>

MyFrame::MyFrame(): wxFrame(NULL, wxID_ANY, _T("wxBitmapButton 测试")){
	wxBoxSizer *frameSizer = new wxBoxSizer(wxHORIZONTAL);

	_pBitmap = new wxStaticBitmap(this, -1, wxBitmap("button.png"));

	frameSizer->Add(_pBitmap, 1, wxALIGN_CENTRE);

	SetSizer(frameSizer);
	SetAutoLayout(TRUE);
	Layout();
}

void MyFrame::OnClose(wxCloseEvent& event){
	Destroy();
}

BEGIN_EVENT_TABLE(MyFrame, wxFrame)
	EVT_CLOSE(MyFrame::OnClose)
END_EVENT_TABLE()
